package com.product.app.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.product.app.mapper.ProductImageMapper;
import com.product.app.service.ProductImageService;
import com.tamll.bean.ProductImage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ProductImageServiceImpl implements ProductImageService {

    @Autowired
    private ProductImageMapper productImageMapper;

    @Override
    public ProductImage get(Integer productimage_product_id) {
        QueryWrapper<ProductImage> wrapper=new QueryWrapper<>();
        wrapper.eq("productimageProductId",productimage_product_id);
        return productImageMapper.selectOne(wrapper);
    }
}
